package main

import (
	"model-demo/utils"
	"net/http"

	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()
	r.GET("/ping", func(c *gin.Context) {
		c.JSON(http.StatusOK, gin.H{
			"message": "pong",
		})
	})
	r.GET("/getString", func(ctx *gin.Context) {
		aaa := "a string"
		bbb := utils.GetString(aaa)
		ctx.JSON(http.StatusOK, gin.H{
			"string": bbb,
		})
	})
	r.Run(":9000")
}
